diff options
| author | Adam Soltys <[email protected]> | 2022-12-27 22:49:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-27 22:49:25 -0800 |
| commit | cf9ccd673cbbf29d9c9d00c2d379382f0a9c06c0 (patch) | |
| tree | 053265f969281e4cd7ae0cd1cb81ac686eb9956f /src/routes/(app)/[username]/settings | |
| parent | 4b6883362463c3ddfb8c7a574b9beba5220d120b (diff) | |
| download | coinos-ui-cf9ccd673cbbf29d9c9d00c2d379382f0a9c06c0.tar.gz coinos-ui-cf9ccd673cbbf29d9c9d00c2d379382f0a9c06c0.zip | |
show follows and followers
Diffstat (limited to 'src/routes/(app)/[username]/settings')
| -rw-r--r-- | src/routes/(app)/[username]/settings/[...tab]/+page.svelte | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte index 55963105..b02ddca4 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte @@ -3,10 +3,10 @@ import { fly } from 'svelte/transition'; import { applyAction, deserialize } from '$app/forms'; - import { Icon, Spinner, Pin, Password } from '$comp'; + import { Icon, Spinner, Pin } from '$comp'; import { t } from '$lib/translations'; import { failure, post, success } from '$lib/utils'; - import { avatarUpload, bannerUpload, passwordPrompt, password, pin } from '$lib/store'; + import { avatarUpload, bannerUpload, pin } from '$lib/store'; import { upload } from '$lib/upload'; import { page } from '$app/stores'; import { sign, send } from '$lib/nostr'; @@ -66,19 +66,6 @@ failure('Something went wrong'); } - if (!$password) { - $passwordPrompt = true; - return; - } - - try { - await post('/password', { password: $password }); - } catch (e) { - console.log(e); - $passwordPrompt = true; - return; - } - let event = { pubkey: user.pubkey, created_at: Math.floor(Date.now() / 1000), @@ -91,7 +78,7 @@ tags: [] }; - await sign(event, user, $password); + await sign({ event, user }); await send(event); const response = await fetch(formElement.action, { @@ -111,18 +98,12 @@ let loaded; onMount(() => setTimeout(() => (loaded = true), 50)); - - $: loading && $password && handleSubmit(); </script> {#if loaded && user.haspin && $pin?.length !== 6} <Pin /> {/if} -{#if $passwordPrompt} - <Password {user} /> -{/if} - <form method="POST" class="mb-[154px]" |
